package cn.iocoder.yudao.module.system.dal.mysql.facecompany;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.system.dal.dataobject.facecompany.FaceCompanyDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.yudao.module.system.controller.admin.facecompany.vo.*;

/**
 * 面试公司 Mapper
 *
 * @author 芋道源码
 */
@Mapper
public interface FaceCompanyMapper extends BaseMapperX<FaceCompanyDO> {

    default PageResult<FaceCompanyDO> selectPage(FaceCompanyPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<FaceCompanyDO>()
                .betweenIfPresent(FaceCompanyDO::getCreateTime, reqVO.getCreateTime())
                .likeIfPresent(FaceCompanyDO::getCompanyName, reqVO.getCompanyName())
                .eqIfPresent(FaceCompanyDO::getContent, reqVO.getContent())
                .orderByDesc(FaceCompanyDO::getId));
    }

}